package com.imax.center.service;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.imax.center.common.Result;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

public interface StatisticsService {

    Result<JSONObject> getBaseCount(String areaCode);

    Result<JSONObject> getCameraOnline(String areaCode);

    Result<JSONArray> getOrgStatistics(String areaCode);

    Result<JSONObject> getOrgMapStatistics(String areaCode);

    Result<JSONObject> getEventCount(JSONObject params);

    Result<JSONArray> get7DayAlarmCount(String areaCode);

    Result<JSONArray> get1YearW00000RtdTrend(String areaCode);

    Result<JSONArray> get7DayTrendCount(String areaCode);

    Result<JSONArray> get7DayHandlerTrend(String areaCode);

    Result<JSONArray> getDataUploadTrend(String areaCode);

    Result<JSONObject> statW00000CountInfo(String areaCode);

    Result<JSONObject> statDisinfectantCountInfo(String areaCode);

    Result<JSONObject> statSludgeCountInfo(String areaCode);

    Result<JSONObject> statElectricityCountInfo(String areaCode);

    Result<JSONArray> getHospitalSensorData(JSONObject params);

    /**
     * 导出医院传感器数据
     * @param params 查询参数
     * @param response HTTP响应对象
     * @throws IOException IO异常
     */
    void exportHospitalSensorData(JSONObject params, HttpServletResponse response) throws IOException;

}